﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
namespace patents_robot_demo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
             Thread [] ff=new Thread[1000];
             for (int i = 0; i < 1000; i++)
             {
                 ff[i] = new Thread(new ThreadStart(Function.SavePatentID));
                 ff[i].Start();
                 ff[i].IsBackground = true;
                 //Thread.Sleep(100);
             }
                    //Thread(Function.SavePatentID());
                ;
        }
    }
}
